package main

import (
	fmt "fmt"
	utils "go_code/chapter06/fundemo01/utils"
)

func main() {
	// 测试调用
	fmt.Println("utils.go中的Num是", utils.Num1)

	var n1 float64 = 1.2
	var n2 float64 = 2.3
	var operator byte = '-'
	var result float64

	result = utils.Cal(n1, n2, operator)
	fmt.Printf("res=%.2f \n", result)

	// 代码...
	// 代码...
	// 代码...

	n1 = 4.5
	n2 = 6.2
	operator = '*'

	result = utils.Cal(n1, n2, operator)
	fmt.Printf("res=%.2f \n", result)

	// 代码...
	// 代码...
	// 代码...
}
